﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ShenLanCMS.Models
{
    /// <summary>
    /// 公共模板
    /// </summary>
    public class TempPub
    {
        [System.ComponentModel.DataAnnotations.Key]
        public Guid PubTempID { get; set; }

        /// <summary>
        /// 首页模板
        /// </summary>
        [Display(Name = "首页模板")]
        [Required(ErrorMessage = "请填写{0}")]
        [DataType(DataType.MultilineText)]
        [StringLength(1000000)]
        public string IndexTemp { get; set; }

        /// <summary>
        /// 搜索模板
        /// </summary>
        [Display(Name = "搜索模板")]
        [Required(ErrorMessage = "请填写{0}")]
        [DataType(DataType.MultilineText)]
        [StringLength(1000000)]
        public string SearchTemp { get; set; }

        /// <summary>
        /// 登录模板
        /// </summary>
        [Display(Name = "登录模板")]
        [Required(ErrorMessage = "请填写{0}")]
        [DataType(DataType.MultilineText)]
        [StringLength(1000000)]
        public string LogonTemp { get; set; }
    }
}
